package com.jy.wms.web;

import com.joyi.gate.comm.SessionInfo;
import com.joyi.gate.safety.vo.UserInfo;
import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * 快速出库
 */
@Controller
@RequestMapping("/outOperation")
public class WmsKsckRouter {
    @Autowired
    SysMenuService menuService;
    //主页面
    @RequestMapping(value = "/fastOutput/{menu}")
    public String toKq(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "ksck/ksckList";
    }
    /*跳转详情页面*/
    @RequestMapping(value = "/seachMx")
    public String getFindKq(String id, Model model) {
        System.out.println("id："+id);
        model.addAttribute("id",id);
        return "ksck/seachKsck";
    }
    /*跳转详情页面*/
    @RequestMapping(value = "/creatKsck")
    public String creatKsck(String id, Model model) {
        System.out.println("id："+id);
        model.addAttribute("id",id);
        return "ksck/creatKsck";
    }
    @RequestMapping(value = "addKsck")
    public String addpurchase(Model model, String bh) {
        model.addAttribute("bh",bh);
        return "ksck/addKsck";
    }
}
